package mockup;

/**
 * Holds information about a room.
 * @author Erik
 * @author daniel
 *
 */
public class RoomMockup extends Mockup implements Comparable<RoomMockup> {
	
	private String name = "";			//formal name of the room, e.g. A145
	private String location = ""; 		//description of how to get to the room
	private String casualName = "";		//casual name of the room, e.g. the Cave
	private String description = "";	//description of the room's equipment
	private int capacity = 0;			//the capacity of the room
	
	public RoomMockup(int id, String name, String location, String casualName, String description, int capacity) {
		super(id);
		this.name = name;
		this.location = location;
		this.casualName = casualName;
		this.description = description;
		this.capacity = capacity;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getCasualName() {
		return casualName;
	}

	public void setCasualName(String casualName) {
		this.casualName = casualName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}	

	public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	public String toString(){
		return getName() + " (" + getCasualName() + ") - " + getCapacity();
	}

	@Override
	public int compareTo(RoomMockup o) {
		return this.getCapacity() - o.getCapacity();
	}
}